<?php    
    $form = form_remote_tag('delete').
            hidden_field_tag('id',$l['id']).
            image_submit_tag('delete','/images/admin/delete.gif',array('onclick'=>"return delete_confirm('acl_{$l['id']}')")).
            end_form_tag();
    printf('<div id="acl_%s" class="an_acl">
            %s
            <span id="name_%s" class="acl_name">%s</span><br />
            <span id="desc_%s" class="acl_description">%s</span></div>',
            $l['id'],
            $form,                        
            $l['id'],
            $l['acl_name'],
            $l['id'],
            $l['acl_description']);
    echo "<script type=\"text/javascript\">
             new Ajax.InPlaceEditor('name_{$l['id']}', '".url_for('modify')."',".
             "{callback: function(form,value){return 'action=edit&acl_name='+escape(value)+'&id={$l['id']}'}, ".
             "ajaxOptions: {evalScripts:true}".
             "});
            </script>";
    echo "<script type=\"text/javascript\">
             new Ajax.InPlaceEditor('desc_{$l['id']}', '".url_for('modify')."',".
             "{callback: function(form,value){return 'action=edit&acl_description='+escape(value)+'&id={$l['id']}'}, ".
             "ajaxOptions: {evalScripts:true}".
             "});
            </script>";
    echo "<script type=\"text/javascript\">new Effect.Highlight('acl_{$l['id']}');</script>";            

?>